home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList-0697 / AMOSLIST / text0231.txt < prev    next >
Encoding:
Text File  |  1997-07-03  |  2.1 KB  |  57 lines

  1. To the one known as Garfield,
  2. > >To solve the problem you could check the speed of the machine
  3. > >in the beginning of the game and according to this value change
  4. > >the speed of the monsters.
  5. >    You could double the animation frames for every object 
  6. >    targeting the fast machines from the start. 
  7. >    If the machine is slow, set the anim-step to 2 and double the
  8. >    x/y velocities of every object.
  9.  
  10. Hmmmmm...  This might actually work.  ..and wouldn't reduce efficiancy on
  11. either machine.
  12.  
  13. >    This would effectively make the game run the same speed. The
  14. >    difference being that the 50fps version would be twice as
  15. >    smooth due to the doubling of the number of anim-frames...
  16.  
  17. Perhaps this section could be put in the installer.  
  18.     Standard/Super Smooth.
  19.  
  20. >    Or, if you wanted the easy way you could just duplicate each of
  21. >    the current frames, so DRAGONHEADFACINGLEFT elements (0)&(1)
  22. >    both equal the same image. Again, simply adjust the ANIMSTEP
  23. >    at the start based on CPU power...
  24.  
  25. This would be a hundred times simpler.  It's called
  26.     if 68060
  27.         wait vbl
  28.     end if
  29.  
  30. but that slows things down a bit on slower machines.  Ah well, maybe it's
  31. all for the best.
  32.  
  33. > >Has anybody else solved this problem in a better way?
  34. >    I don't know if I'd say it's better, but the EASY way is just to place
  35. >    a little timer check in your main-loop:
  36. >    This is the method I will be using in the Shooter-stage so the final
  37. >    version will run at 25/30 fps on all machines (except stock A500
  38. >    that is)...
  39.  
  40. Anyone still using one ?
  41.  
  42. >    Any of you guys using 50MHz Amigas, PLEASE let me know how the
  43. >    demo performs on your machines.
  44. >    Should easily hit 50/60 fps, but I'd like to be sure...
  45.  
  46. Also, anyone with 68030/040/whatever isn't a 68020, please give speed
  47. feedback on all sections !!
  48.  
  49.  
  50.  _   _   _        _     _   _     |  
  51. |_> |_| |_| |\ | |_ |  | | /   |  |  "What do you want ?" - Number 6
  52. |_> | \ | | | \| |_ |_ |_| \_  .  |  "Information." - Number 2
  53.                                   |  
  54.                     --------------+---------------
  55.                      http://www.mirex.demon.co.uk
  56.  
  57.